<%-- 
    Document   : updateSchedule
    Created on : Apr 16, 2009, 7:09:03 AM
    Author     : K.Bala Lakshmi
--%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Schedule View</title>

        <style type="text/css">
            <!--
            @import url("erpstyles.css");
            @import url("../csss/erpstyles.css");
            .style1 {color: #FFFFFF}
            -->
        </style>
        <script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
    </head>

    <body bgcolor="#FFFFCC">
        <table width="980" border="0" cellspacing="0" cellpadding="0" align="center">

            <tr>
                <td width="878" rowspan="12" bgcolor="#FFFFCC"><p>&nbsp;</p>

                    <%@ page import="java.io.*"%>
                    <%@ page import="java.util.*"%>
                    <%@ page import="java.sql.*"%>
                    <%@ page import="schedule.*"%>
                    <%
                              String err=null;
                                   ArrayList al=(ArrayList)request.getAttribute("AL");

                                 System.out.println("al at scheduleview list :%" + al);
                                 if(al!=null)
                                  {
                          Iterator it=al.iterator();
                    %>

                    <% while(it.hasNext())
                                       {
                                               ScheduleBean shb=(ScheduleBean)it.next();
                               String scheduleno			=		shb.getSchedule_No();
                               String schedulename			=		shb.getSchedule_Name();
                               String sub1					=		shb.getSub_Schedule1();
                               String sub2					=		shb.getSub_Schedule2();
                               String sub3					=		shb.getSub_Schedule3();
                               String desc					=		shb.getDescription();



                    %>

                    <form  action="./ScheduleUpdateServ" method="post" name="shupdate" >


                        <table width="748" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td height="43" colspan="3" bgcolor="#FFFFCC" class="login" background="images/erpimg.jpg"><div align="center">Update Schedule </div></td>
                            </tr>
                            <tr>
                                <td width="37">&nbsp;</td>
                                <td width="191" class="tabledata"> <div align="center">Schedule Number </div></td>
                                <td width="520"><input name="scheduleno"  value="<%=scheduleno%>" type="text" size="40" maxLength=20 /></td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="tabledata"><div align="center">Schedule Name  </div></td>
                                <td bgcolor="#7DDF90"><select name="schedulename">
                                        <option><%=schedulename%></option>
                                        <option>assets</option>
                                        <option>liabilities</option>
                                        <option>income</option>
                                        <option>expenditure</option>
                                    </select>        </td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td class="tabledata"><div align="center">SubSchedule_1 </div></td>
                                <td><input name="sub1" type="text" id="sub1" size="40" maxlength=50  value="<%=sub1%>"  /></td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" >&nbsp;</td>
                                <td bgcolor="#7DDF90" class="tabledata"><div align="center">SubSchedule_2</div></td>
                                <td bgcolor="#7DDF90"><input name="sub2"type="text" id="sub2" size="40"  value="<%=sub2%>"/>	</td>
                            </tr>
                            <tr bgcolor="#FFFFCC">
                                <td >&nbsp;</td>
                                <td class="tabledata"><div align="center">SubSchedule_3</div></td>
                                <td><input name="sub3"type="text" id="sub2" size="40"  value="<%=sub3%>" />	</td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90">&nbsp;</td>
                                <td bgcolor="#7DDF90" class="tabledata"><div align="center">Description</div></td>
                                <td bgcolor="#7DDF90"><input name="desc" type="text" id="desc" size="40" maxlength="10"  value="<%=desc%>" /></td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td class="addform">&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90">&nbsp;</td>
                                <td colspan="2" bgcolor="#7DDF90" class="addform"><div align="center">
                                        <input name="Submit" type="submit" class="tabledata" value="Update" />
                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                        <input name="reset" type="reset" class="tabledata" value="Reset" />
                                    </div></td>
                            </tr>
                        </table>
                        <%}%>
                        <%}%>
                    </form>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p></td>
            </tr>

        </table>
    </body>
</html>
